{extend name="index_layout"/}
{block name="main"}
<form class="layui-form" method="post">

    <div class="layui-form-item">
        <label class="layui-form-label">套餐名称</label>
        <div class="layui-input-block">
            <input type="text" name="row[name]" lay-verify="required" autocomplete="off" placeholder="套餐名称"
                   class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">套餐区域</label>
        <div class="layui-input-block">
            <select name="row[province]" lay-verify="required" lay-filter="ccc62">
                <option value="">请选择省</option>
                {volist name="proviec" id="vo"}
                <option value="{$vo.name}"
                <?php if( $vo['name'] == $data['province']){ ?> selected <?php }?>>{$vo.name}</option>
                {/volist}
            </select>
        </div>
    </div>


    <div class="layui-form-item">
        <label class="layui-form-label">运营商类型</label>
        <div class="layui-input-block" id="is_c2">

            <input type="radio" name="row[yys]" value="广电" checked title="广电" lay-filter="ccc2">

            <input type="radio" name="row[yys]" value="移动"   title="移动" lay-filter="ccc2">

            <input type="radio" name="row[yys]" value="联通"   title="联通" lay-filter="ccc2">

            <input type="radio" name="row[yys]" value="电信"   title="电信" lay-filter="ccc2">

        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">首冲金额</label>
        <div class="layui-input-block">
            <input  value="{$data.sc_money}" type="number" name="row[sc_money]" lay-verify="required" autocomplete="off" placeholder="首冲金额"
                    class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">商家奖励</label>
        <div class="layui-input-block">
            <input  value="{$data.reward1}" type="number" name="row[reward1]" lay-verify="required" autocomplete="off" placeholder="商家奖励"
                    class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">业务员奖励</label>
        <div class="layui-input-block">
            <input  value="{$data.reward2}" type="number" name="row[reward2]" lay-verify="required" autocomplete="off" placeholder="业务员奖励"
                    class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">商家服务费</label>
        <div class="layui-input-block">
            <input  value="{$data.commission1}" type="number" name="row[commission1]" lay-verify="required" autocomplete="off" placeholder="商家服务费"
                    class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">业务员服务费</label>
        <div class="layui-input-block">
            <input  value="{$data.commission2}" type="number" name="row[commission2]" lay-verify="required" autocomplete="off" placeholder="业务员服务费"
                    class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label" style="color: red;font-weight: bold">业务经理服务费</label>
        <div class="layui-input-block">
            <input  value="{$data.top_commission2}" type="number" name="row[top_commission2]" lay-verify="required" autocomplete="off" placeholder="业务员服务费"
                    class="layui-input">
        </div>
    </div>


    <div class="layui-form-item layer-footer">
        <div class="layui-input-block">
            <button class="layui-btn" lay-submit="">立即提交</button>
            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
        </div>
    </div>
</form>
{/block}
{block name="script"}
<script type="text/javascript">
    layui.use('yznForm', function () {
        var yznForm = layui.yznForm;
        yznForm.bindevent($("form.layui-form"));
    });
</script>
{/block}